package multiarray;


import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;



public class MultiArrayTest {

	static int[] dimensionSizes = new int[]{2, 5, 7, 4, 3, 8};
	static int[] positions = new int[]{1, 3, 6, 3, 2, 5};
	static MultiArray multiArray;
	
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
		
		multiArray = new MultiArray(dimensionSizes);
		
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testMultiArray() {
		//fail("Not yet implemented");
	}

	@Test
	public void testGetElementIndex() {
		//fail("Not yet implemented");
		int index = multiArray.getElementIndex(positions);
		System.out.println(index);
	}

	@Test
	public void testGetElementPositions() {
		//fail("Not yet implemented");
		int[] positions = multiArray.getElementPositions(5037);
		String positionString = MultiArray.printIntArray(positions);
		System.out.println(positionString);
	}

}
